<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>修改用户</title>
  <link rel="stylesheet" th:href="@{/static/css/user.css}" type="text/css"></link>
</head>
<body>
  <h1>修改用户</h1>
  <form th:action="@{/user}" method="post">
<!--    隐藏域-->
    <input type="hidden" name="_method" value="put">
    <input type="hidden" name="id" th:value="${user.id}">

    <label>用户名:</label>
    <input type="text" name="name" th:value="${user.name}" required>

<!--    <label>性别:</label>-->
<!--    <select name="gender" required>-->
<!--      <option value="">&#45;&#45; 请选择 &#45;&#45;</option>-->
<!--      <option value="1" th:field="${user.gender}">男</option>-->
<!--      <option value="0" th:field="${user.gender}">女</option>-->
<!--    </select>-->

    <label>手机:</label>
    <input type="number" name="phone" th:value="${user.phone}" required>

    <button type="submit">修改</button>
  </form>
</body>
</html>